package com.qf.dao;
import com.qf.loanapplication.Loanapplication;
import com.qf.loanrepayment.Loanrepayment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface RepaymentDao {
    //后台

    //查询所有
    public List<Loanrepayment> findAll();

    public int deleteById(Integer id);

    public int update(Loanrepayment loanrepayment);

    public int insert(Loanrepayment loanrepayment);


    //前台
    /*所有申请的额度*/
    public double aApplied(Integer id);

    /*所有已还款的额度*/
    public double findPaid(Integer id);

    /*查询用户的所有申请订单*/
    public List<Loanapplication> findBill(Integer id);

    /*某笔订单所还款金额的记录*/
    public Double findAlreadypaid(Integer loanapplicationd);



}
